NOTE: The token <Ctrl> has been added. It isn't on page 17 of the manual, or on any other pages, for that matter. See the examples near the end of this macro table.
The manual wrongly refers to <Rtn> as <Ret> in a couple of places.
Macros can now "call" temporary macros. See macros T and X.
During a temporary macro, you can press Control-T to enter the equivalent of a <key> token. AppleWorks will beep, but when the macro is called again, it will pause for a keystroke.
In a MACROS. file, text can wrap around from one line to another, but reserved words such as <rtn> must be entirely on the same line. Macros from page 19 of the manual are included here, along with some other bonus macros.
Never save the file with page breaks visible. It won't compile properly.
If a macro file like this one has too many comments, the compiler may not be able to load it. The maximum size is about 13K.
Macro Comment
----- -------
START
<left>:<oa-tab><oa-tab><sa-left>| jump to beginning of line
<right>:<sa-left><down><left>| jump to end of line
<up>:<up><sa-up>| cursor up 12 lines; used by sa-(
<down>:<oa-F>ONP<rtn>| find next forced page break (NP)
<rtn>:<oa-O>NP<rtn><esc>| insert page break
<tab>:<tab><tab><sa-tab>| jump to far right margin
<spc>:<oa-E> <oa-E><left>| insert space from strike-over mode
A:<oa-Q><esc><rtn><rtn>| add files to desktop
B:<right><oa-left><Ctrl-B><oa-right><left><Ctrl-B>|boldface word at cursor
C:<oa-O>CN<rtn><esc>| center text
D:<right><oa-left><oa-M>T<oa-right><left><Rtn>| delete word under cursor
E:<oa-1><down><down><oa-O>lm<Rtn>0<Rtn><Esc>Bryan Ross<Rtn>3624 Bogus Dr.<Rtn>Lakeside, CA 92040<Rtn><Rtn><Rtn><Rtn><Rtn><Rtn><oa-O>lm<Rtn>
<Rtn>| set a marker, jump to last page of AWP file, wait for a key (use arrow key), return to marker and delete it. Keep copies of temporary text macros at the end of the file and use this when you forget which word goes with which macro
<Ctrl-A>:AppleWorks| handy for us, if not for you
<Ctrl-L>:<oa-Q><Esc>5<Rtn>2<Rtn>| list all files on the current drive
<Ctrl-S>:<oa-o><Key>S<Rtn><Esc>| set line spacing s,d or t
END
System Macros (can't be recompiled)
-------------
<del>:<right><del>| oa-del works the same as sa-del
The numbers 0 through 9 are redefinable from within AppleWorks for up to 70 key strokes each.
<oa-left><oa-left>| shrink a spreadsheet column; change the <oa-left>'s to <oa-right>'s to expand a spreadsheet column; the macro ends without a <Rtn> so you can make adjustments before accepting the new width
Brilliant Ideas from MacroWorks Users
-------------------------------------
<Ctrl-P>:<oa-Q><Esc>5<Rtn>7<Rtn>3<Rtn><Up><Rtn>2<Rtn><Up><Rtn>Printer Name<Rtn>| drop last printer on list and add a new custom printer; finish this macro by adding your appropriate printer codes. Duplicate this macro to make as many custom printers as you need
B:<oa-1><oa-r>C<oa-y>#B<rtn><rtn><rtn>Y<rtn><oa-o>bb<rtn><esc><sa-b>| this macro will replace boldface printer codes (#B) from an ASCII text file with the proper AppleWorks boldface code
Envelope Addresser Macro by Randy Brandt (June 28, 1986)
=========================
NOTE: USE THIS MACRO WHEN ZOOM (OA-Z) IS OFF AND THE INSERT CURSOR IS ACTIVE!
The first 6 lines of the AWP file must be set up like this:
July 4, 1776 ; line 1- date or anything else
; line 2
Matt Reimer ; line 3- address starts here
Graphics Software ; line 4
68000 Chip Way ; line 5- optional last line of address
Lakeside, CA 92040 ; line 6- last line printed
; line 7- don't care what's from here on
Dear Matt, ; line 8
Press SA-E from anywhere in the file to address an envelope on the current printer. The address can be 3 or 4 lines. Customize the macro with the desired margin settings and names.
Envelope Macro Analysis
E:<oa-1><down><down> ; skip date
<oa-O>lm<Rtn>0<Rtn><Esc> ; set margin for rtn address
Bryan Ross<Rtn>3624 Bogus Dr.<Rtn> ; rtn address name & street
Lakeside, CA 92040<Rtn> ; rtn city & state
<Rtn><Rtn><Rtn><Rtn><Rtn> ; total of 8 rtn's to address
<oa-O>lm<Rtn>3<Rtn><Esc> ; set margin for address
<Down><Down><Down><Down> ; move past 4-line address